package router

import (
	jwt "gitee.com/sansaniot/ssiot-core/httpmvc/jwtauth"
	"github.com/gin-gonic/gin"
	"ssadmin/internal/admin/apis"
)

func init() {
	AuthRouters = append(AuthRouters, registerSysApiRouter)
}

func registerSysApiRouter(v1 *gin.RouterGroup, authMiddleware *jwt.GinJWTMiddleware) {
	api := apis.SysApi{}
	// 告警配置
	r := v1.Group("/api/sys/api").Use(authMiddleware.MiddlewareFuncWithOutValidate())
	{
		r.GET("/tree", api.FindSysApiTree)
	}
}
